//
//  WholeContentViewController.m
//  Qya
//
//  Created by maxwell pang on 12-9-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "WholeContentViewController.h"

@interface WholeContentViewController ()

@end

@implementation WholeContentViewController
@synthesize scroll;
@synthesize pic;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
	[scroll setCanCancelContentTouches:NO];
	scroll.indicatorStyle = UIScrollViewIndicatorStyleWhite;
	scroll.clipsToBounds = YES;		// default is NO, we want to restrict drawing within our scrollview
	scroll.scrollEnabled = YES;
    scroll.pagingEnabled = YES;
    
	
	// 2. setup the scrollview for one image and add it to the view controller
	//
//	[scrollView2 setBackgroundColor:[UIColor blackColor]];
	[scroll setCanCancelContentTouches:NO];
	scroll.clipsToBounds = YES;	// default is NO, we want to restrict drawing within our scrollview
	scroll.indicatorStyle = UIScrollViewIndicatorStyleWhite;

    
    
    
    [scroll setContentSize:CGSizeMake(320,800)];
//    scroll.contentSize = CGSizeMake(320,800);
    [scroll setScrollEnabled:YES];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [self setPic:nil];
    [self setScroll:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
